package com.koro.service;

import com.koro.spring.Autowired;
import com.koro.spring.BeanNameAware;
import com.koro.spring.Component;
import com.koro.spring.InitializingBean;

@Component
public class OrderService implements BeanNameAware, InitializingBean,OrderServiceInterface {

    @Autowired
    private UserService userService;

    private String beanName;


    public void test(){
        System.out.println(beanName);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("orderService对象初始化方法");
    }
}
